import { getConsultData } from "../../utils/api";

const consultModule = {
  state: {
    consultdata: 1,
  },
  mutations: {
    getconsultda(state, playload) {
      state.consultdata = playload.result;
    },
  },
  actions: {
    async getconsultdaasync({ commit }) {
      const res = await getConsultData();
      // console.log(res.data);
      commit("getconsultda", res.data);
    },
  },
  modules: {},
};

export default consultModule;
